require 'tweet_gen'

class TwitterPost < ActiveRecord::Base
  def self.post_to_twitter
    # create request
    req = TweetGen.generate
    # send request
    twitter = Net::HTTP.start('twitter.com')
    twitter.request(req)
  end
end
